<?php
/**
 * FCKeditor adapter for XOOPS
 *
 * @copyright	The XOOPS project http://www.xoops.org/
 * @license		http://www.fsf.org/copyleft/gpl.html GNU public license
 * @author		Taiwen Jiang (phppp or D.J.) <php_pp@hotmail.com>
 * @since		4.00
 * @version		$Id$
 * @package		xoopseditor
 */
include_once "../../mainfile.php"; 
global $xoopsModule;
$dirname = basename( dirname( __FILE__ )) ;
$fckmodule_handler = xoops_gethandler('module');
echo " \n FCKConfig.FontNames		= 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; \n ";
$toolbar="default";
$fckmodule = $fckmodule_handler->getByDirname('fckeditor');
if (is_object($fckmodule) && $fckmodule->getVar('isactive') == 1) {
	include_once XOOPS_ROOT_PATH."/modules/fckeditor/class/classfckeditor.php";
	$xoops_editor = new accfckeditor();
	$fck_tools = $xoops_editor->read($xoopsModule->mid());
	$fck_tools =split(",",$fck_tools);
	$toolbar = $fck_tools[1];
}
echo "FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/".$toolbar."/' ;";
?>